package com.mercycrazy.recruit.constant;

/**
 * Auth Service Redis 相关常量定义
 *
 * @author <a href="mailto:1443424326@qq.com">mercycrazy</a>
 * @since 2023-01-14
 */
public class RedisConstant {

    /** 限制相同 IP 60s 内只能请求一次短信 */
    public static final String LIMIT_SMS_CODE_IP = "limit_sms_code_ip:%s";

    /** 限制验证码半小时内有效 */
    public static final String MOBILE_SMS_CODE = "mobile_sms_code:%s";

    /** saas 端扫码登录预先生成的二维码令牌 qrToken, 5 分钟有效 */
    public static final String SAAS_PLATFORM_LOGIN_QR_TOKEN = "sass_platform_login_qr_token:%s";

    /** 二维码令牌状态为未读取 */
    public static final String QR_TOKEN_UNREAD_STATUS = "0";

    /** 二维码令牌状态为已读取 */
    public static final String QR_TOKEN_READ_STATUS = "1";

    /** APP 扫描二维码生成的预登录令牌 */
    public static final String SAAS_PLATFORM_PRE_TOKEN = "saas_platform_pre_token:%s";

    /** SAAS 端用户信息, 登录时从 redis 中读取 */
    public static final String SAAS_LOGIN_USER_INFO = "saas_login_user_info:%s";
}
